package com.javase.sy06p.Q1;

public class Dog extends Pet {
    public Dog(String name) {
        this.name = name;
    }

    public void follow(){
        System.out.println(name + "开始跟随跑起来了");
    }
}
